#pragma once

#include "clkTexture.h"

class gBar : public clkAbstract
{
private:
	float      m_perc;
	clkTexture m_back;
	clkTexture m_bar;
	clkTexture m_fore;
public:
	gBar();
	~gBar();

	void initBar(
		char* a_fore,
		char* a_back,
		char* a_bar,
		V2DF a_pos,
		V2DF a_off);
	void update();
	void draw();

	void setPerc(float a_perc){m_perc=a_perc;}
};